@model EIMS.Models.Supplier

@{
    ViewData["Title"] = "删除供应商";
}

<div class="container-fluid">
    <h1 class="mt-4">删除供应商</h1>
    <ol class="breadcrumb mb-4">
        <li class="breadcrumb-item"><a asp-controller="Home" asp-action="Index">首页</a></li>
        <li class="breadcrumb-item"><a asp-controller="Supplier" asp-action="Index">供应商管理</a></li>
        <li class="breadcrumb-item active">删除供应商</li>
    </ol>

    <div class="alert alert-danger" role="alert">
        <h4 class="alert-heading"><i class="fas fa-exclamation-triangle"></i> 警告！</h4>
        <p>您确定要删除此供应商记录吗？此操作不可逆转。</p>
    </div>

    <div class="card mb-4">
        <div class="card-header">
            <i class="fas fa-user-minus me-1"></i>
            供应商信息
        </div>
        <div class="card-body">
            <div class="row mb-3">
                <div class="col-sm-3 text-muted">
                    @Html.DisplayNameFor(model => model.SupplierNumber)
                </div>
                <div class="col-sm-9">
                    @Html.DisplayFor(model => model.SupplierNumber)
                </div>
            </div>

            <div class="row mb-3">
                <div class="col-sm-3 text-muted">
                    @Html.DisplayNameFor(model => model.Name)
                </div>
                <div class="col-sm-9">
                    @Html.DisplayFor(model => model.Name)
                </div>
            </div>

            <div class="row mb-3">
                <div class="col-sm-3 text-muted">
                    @Html.DisplayNameFor(model => model.Type)
                </div>
                <div class="col-sm-9">
                    @Html.DisplayFor(model => model.Type)
                </div>
            </div>

            <div class="row mb-3">
                <div class="col-sm-3 text-muted">
                    @Html.DisplayNameFor(model => model.ContactPerson)
                </div>
                <div class="col-sm-9">
                    @Html.DisplayFor(model => model.ContactPerson)
                </div>
            </div>

            <div class="row mb-3">
                <div class="col-sm-3 text-muted">
                    @Html.DisplayNameFor(model => model.PhoneNumber)
                </div>
                <div class="col-sm-9">
                    @Html.DisplayFor(model => model.PhoneNumber)
                </div>
            </div>

            <div class="row mb-3">
                <div class="col-sm-3 text-muted">
                    @Html.DisplayNameFor(model => model.Status)
                </div>
                <div class="col-sm-9">
                    <span class="badge bg-@(Model.Status == EIMS.Models.Enums.SupplierStatus.Active ? "success" : 
                                          Model.Status == EIMS.Models.Enums.SupplierStatus.Suspended ? "warning" : "danger")">
                        @Html.DisplayFor(model => model.Status)
                    </span>
                </div>
            </div>

            <form asp-action="Delete">
                <input type="hidden" asp-for="Id" />
                <button type="submit" class="btn btn-danger">
                    <i class="fas fa-trash"></i> 确认删除
                </button>
                <a asp-action="Index" class="btn btn-secondary">
                    <i class="fas fa-arrow-left"></i> 返回列表
                </a>
            </form>
        </div>
    </div>
</div> 